<?php

  
class Article_Article extends CMS_Controller{

		private $view = array();
		//private static $instance;
		private $name = null;

		
		//public $id;
		
		
	
public function __construct(){
		
	$this->name = 'artykullllllll';
		echo __CLASS__;
		//$registry = Registry_Registry::singleton();
		//echo $registry->getObject('a');
		
	}

	public function index(){
		echo 'domyslna';
		
		$this->view['content'] = '<br>domyslna akcja<br>';
		
		
		
		
		
		
		
	}
	
	public function getName(){
		
		return $this->name;
	}
	
	public function getList(){
		$this->view['content']['lista'] =  '<br /> lista ';
		
	}
	
	public function pokaz(){
		
		echo '________<br />';
		
		
		
		echo __METHOD__;
		
		
		
		
		$model = new Article_ArticleModel();
		
		
		$b = $model->getItem(160);
		
		 
		echo $b->getName();
		//dump($b);
		
		echo $model->getItem(160)->getName();
		
		$b = $model->getAll();
		
		 
		
		dump($b);
		
		
		
		echo '____________<br />';
		//$model->set('id', '100');
		
		
		dump(get_object_vars($model));
		//klasa_Category::news();
		
		include(LIBRARY.'/Category/Category.php');
		
		$this->view['content']['pokaz'] =  '<br /> pokazuje ';
		
		
	
	}

	/*
	public function getView(){
		return  $this->view;
	}
	*/
	
}


?>